this.BX=this.BX||{};this.BX.Landing=this.BX.Landing||{};this.BX.Landing.UI=this.BX.Landing.UI||{};(function(e,t,a,s,i){"use strict";var l=function(e){babelHelpers.inherits(t,e);function t(e){var s;babelHelpers.classCallCheck(this,t);s=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this,e));s.setEventNamespace("BX.Landing.UI.Field.SmallSwitch");a.Dom.addClass(s.layout,"landing-ui-field-small-switch");a.Dom.attr(s.slider,"data-text",i.Loc.getMessage("LANDING_SMALL_SWITCHER_ON"));s.adjustLabel();return s}babelHelpers.createClass(t,[{key:"adjustLabel",value:function e(){if(this.getValue()){a.Dom.attr(this.slider,"data-text",i.Loc.getMessage("LANDING_SMALL_SWITCHER_ON"))}else{a.Dom.attr(this.slider,"data-text",i.Loc.getMessage("LANDING_SMALL_SWITCHER_OFF"))}}},{key:"onChange",value:function e(){babelHelpers.get(babelHelpers.getPrototypeOf(t.prototype),"onChange",this).call(this);this.adjustLabel()}}]);return t}(t.Switch);e.SmallSwitch=l})(this.BX.Landing.UI.Field=this.BX.Landing.UI.Field||{},BX.Landing.UI.Field,BX,BX,BX.Landing);
//# sourceMappingURL=smallswitch.bundle.map.js